package com.itrident.msg;

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationGroup;
import com.intellij.notification.Notifications;
import com.intellij.openapi.extensions.PluginId;
import com.intellij.openapi.ui.MessageType;

/**
 * @author cxx
 * @create 2020-12-03 21:36
 **/
public class MessageUtil {

    public static void debugNotifyMsg(String msg, MessageType type){
//        NotificationGroup notificationGroup = NotificationGroup.create ("itrident_id", NotificationDisplayType.NONE, false, null, null, "三叉戟", PluginId.getId ("itrident"));
//        Notification notification = notificationGroup.createNotification(msg, type);
//        Notifications.Bus.notify(notification);
    }

    public static void notifyMsg(String msg, MessageType type){
        NotificationGroup notificationGroup = NotificationGroup.create ("itrident_id", NotificationDisplayType.NONE, false, null, null, "三叉戟", PluginId.getId ("itrident"));
        Notification notification = notificationGroup.createNotification(msg, type);
        Notifications.Bus.notify(notification);
    }

}
